package com.dao;

import com.po.Activity;
import com.po.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface UserRepository extends JpaRepository<User, Long>, JpaSpecificationExecutor<User> {

    User findByPhone(String phone);

    User findByPhoneAndPassword(String phone, String password);


    List<User> findAllByState(int i);


}
